﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CoolCode.Web.Mvc.UI.Grid.Toolbar
{
    public  class ToolbarContainer:List<IToolbarButton> , IToolbarContainer
    {
        #region IToolbarContainer Members

        IToolbarContainer IToolbarContainer.Add(Action<IToolbarButton> builder)
        {
            IToolbarButton button = new ToolbarButton();
            builder(button);
            base.Add(button);
            return this;
        }

        #endregion
    }
}
